From: Jasper St. Pierre Date: Thu, 20 Sep 2012 22:31:24 +0000 (-0300) Subject: messageTray: Clean up commented code a bit X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5761 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7df7cd01ebd95486f11d4947192bf55cffcc3766;p=gnome-shell.git messageTray: Clean up commented code a bit Since we changed the grabHelper.grab call to be in a conditional, it's been a little clear what the comment has been referring to. https://bugzilla.gnome.org/show_bug.cgi?id=684458 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 30cb6a7e6..6892ba193 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -2031,8 +2031,10 @@ const MessageTray = new Lang.Class({ // Don't actually take a modal grab in the overview. // Just add something to the grab stack that we can // pop later. + let modal = !this._overviewVisible; + if (!this._grabHelper.grab({ actor: this.actor, - modal: !this._overviewVisible, + modal: modal, onUngrab: Lang.bind(this, this._escapeTray) })) { this._traySummoned = false; return;